-
Notifications
You must be signed in to change notification settings - Fork 8.3k
shell: rename shell_xxx_impl wrapper functions to shell_fprintf_xxx
#77192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell: rename shell_xxx_impl wrapper functions to shell_fprintf_xxx
#77192
Conversation
|
👀 @jakub-uC just a ping to see if you might have a moment to review. |
|
What about changing |
OK, wait a moment. This also makes me curious why we use a wrapper macro when we can call the exact function. 😃 |
6126233 to
9cd02d6
Compare
9cd02d6 to
5927eeb
Compare
|
@jakub-uC Seem this piece of test code block the CI.
|
Since the `_impl` naming convention is intended for internal use only, renaming these functions to the `shell_fprintf_xxx` variant is more suitable for calls outside the module: - `shell_info_impl` to `shell_fprintf_info` - `shell_print_impl` to `shell_fprintf_normal` - `shell_warn_impl` to `shell_fprintf_warn` - `shell_error_impl` to `shell_fprintf_error` Signed-off-by: Pisit Sawangvonganan <[email protected]>
5927eeb to
8203656
Compare
…intf` Due to the introduction of `shell_xxx_impl` wrapper functions in PR zephyrproject-rtos#75340 and rename to `shell_fprintf_xxx` in PR zephyrproject-rtos#77192 we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_xxx_impl` wrapper functions in PR #75340 and rename to `shell_fprintf_xxx` in PR #77192 we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR zephyrproject-rtos#77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR #77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR zephyrproject-rtos#77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR #77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR zephyrproject-rtos#77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR zephyrproject-rtos#77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
…intf` Due to the introduction of `shell_fprintf_normal` in PR zephyrproject-rtos#77192, we can minimize caller overhead by eliminating direct `color` parameter passing. Signed-off-by: Pisit Sawangvonganan <[email protected]>
Since the
_implnaming convention is intended for internal use only, renaming these functions to theshell_fprintf_xxxvariant is more suitable for calls outside the module:shell_info_impltoshell_fprintf_infoshell_print_impltoshell_fprintf_normalshell_warn_impltoshell_fprintf_warnshell_error_impltoshell_fprintf_errorThis change is related to PR #77165.